define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {

		//返回信息
		return {
			//站内信详情
			get_detail: function(param, callback, error, done) {
				param = param || {}
				param.method = 'member.homepagemail.detail';
				Http.post(param, callback, error, done);
			},
			//删除站内信
			delete: function(param, callback, error, done) {
				param = param || {}
				param.method = 'member.homepagemail.delete';
				Http.post(param, callback, error, done);
			}
			
		};
	}

	factory.$inject = ['Http'];
	return app.registerService("Message_detail", factory);
});